import { http } from '@/utils/http'
import type { BannerItem, CategoryItem, newsItem, SignupItem } from '@/types/index/home'

//封装轮播图api
export const getHomeBannerAPI = () => {
  return http<BannerItem[]>({
    url: '',
    method: 'GET',
  })
}

//封装图标文字api
export const getCategoryIconListAPI = () => {
  return http<CategoryItem[]>({
    url: '',
    method: 'GET',
  })
}

export const getNewsListAPI = () => {
  return http<newsItem[]>({
    url: '',
    method: 'GET',
  })
}

//封装获取活动API
export const getSignupListApi = () => {
  return http<SignupItem[]>({
    url: '',
    method: 'GET',
  })
}
